'use strict';

define(['angular', 'services'], function(angular, services) {

    // 构造过滤器模块
    function FilterModule(name, dependencies) {
        var module = angular.module(name, dependencies);
        module.config(['$filterProvider', function ($filterProvider) {
            module.register = function(name, fn) {
                $filterProvider.register(name, fn);
            }
        }]);
        return module;
    }

    return {
        common : angular.module('app.common.filters', ['app.common.services'])
    };
});